import datetime

from dateutil.relativedelta import relativedelta

date = datetime.datetime.strptime('2022-12-13', '%Y-%m-%d')
end = date + relativedelta(months=1)
print(type(end))
print(end.strftime('%Y-%m-%d'))


a = {"index":2}
lt = []
lt.append(a)

for l in lt:
    l.update({"index":3})

print(lt)